#!/usr/bin/env python
from google.appengine.ext import db

class HostModel(db.model):
    '''
    Represents a status host page
    '''
    name = db.StringProperty(require=True)
    twitter = db.StringProperty()
    hostname = db.StringProperty(require=True)
    updated = db.DateTimeProperty(auto_now_add=True)

class StatusModel(db.model):
    '''
    Represents a status for a given web host
    '''
    reference = db.ReferenceProperty(HostModel)
    date = db.DateTimeProperty(auto_now_add=True)
    message = db.StringProperty(multiline=true)

